<script type="text/javascript" language="javascript" charset="utf-8">
$(".header-con li a").removeClass("open-menu");
$(".header-con li #finance").addClass("open-menu");
</script>
<div class="boxed clearfix">
  <div class="common-tit">
    <h2>工资表</h2>
    <span>财务管理 > 工资表</span>
  </div>
  <div id="<%= "#{controller_name}_#{action_name}_search" %>" class="cmlist-tit clearfix">
    <div class="mar-listbox wages-list clearfix">

      <div class="mar-date" style="left: 0px;bottom: 0px" >
        <div class="mdate-btn" dateCon="close">
          <strong>2016</strong><b>年</b><em>12</em><b>月</b><i></i>
        </div>
        <div class="time-date">
          <div class="t-tra"></div>
          <div class="t-year">
            <span class="year-l"></span>
            <strong>2016年</strong>
            <span class="year-r"></span>
          </div>
          <div class="t-month">
            <span>1月</span>
            <span>2月</span>
            <span>3月</span>
            <span>4月</span>
            <span>5月</span>
            <span>6月</span>
            <span>7月</span>
            <span>8月</span>
            <span>9月</span>
            <span>10月</span>
            <span>11月</span>
            <span>12月</span>
          </div>
        </div>
      </div>

      <%= hidden_field_tag 'search_month',"#{Time.now.strftime("%Y-%m")}"%>

      <div id="studio_select" style="left: 150px;" class="list-box">
        <div class="downbtn">
          <span data_id="all">全部门店</span>
          <em></em>
        </div>
         <ul class="dropdown-menu">
           <li data_id="all">全部门店</li>
           <% @studios.each do |studio| %>
             <li data_id="<%= studio.id%>"><%= studio.name%></li>
           <% end %>
        </ul>
      </div>
      <div id="department_select"  style="left: 150px;" class="list-box">
        <div class="downbtn">
          <span data_id="all">全部部门</span>
          <em></em>
        </div>
        <ul class="dropdown-menu">
          <li data_id="all">全部部门</li>
          <% @company.department_configurations.each do |department| %>
            <li data_id="<%= department.id%>"><%= department.department_name%></li>
          <% end %>
        </ul>
      </div>
      <div id="position_select"  style="left: 150px;" class="list-box">
        <div class="downbtn">
          <span data_id="all">全部职位</span>
          <em></em>
        </div>
        <ul class="dropdown-menu">
          <li data_id="all">全部职位</li>
          <% @company.position_configurations.each do |position| %>
            <li data_id="<%= position.position_name %>"><%= position.position_name%></li>
          <% end %>
        </ul>
      </div>
      <div class="i-search">
        <em></em>
        <input id="employee_name" type="text" placeholder="请输入要搜索员工的名字">
      </div>
    </div>
  </div>
  <div class="stlist-con">
    <div class="scrollbox" id="<%= "#{controller_name}_#{action_name}_datatable" %>" data_source="/admin/finances/laborage.json" >
      <table>
        <thead>
          <tr>
            <th class="wages-time">时间</th>
            <th class="wages-name">姓名</th>
            <th class="wages-pos">职位</th>
            <th class="wages-wg">基本工资(元)</th>
            <th class="wages-com">超出部分提成(元)</th>
            <th>总计(元)</th>
          </tr>
        </thead>
        <tbody>
         
        </tbody>
      </table>
    </div>
   
  </div>
   
</div>

<script src="/assets/js/common-list.js"></script>
